package com.lem.ssecurity.po;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;

/**
 * 结果
 *
 * @author LiuEMO
 * @date 2023/06/06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//仅在属性值不为null时才将其包含在JSON输出中
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Result<T> implements Serializable {
    private Integer code;
    private String msg;
    private T data;

    public Result(int i, String s) {
        this.code = i;
        this.msg = s;
    }
}
